<?php

function jiage($tra,$sign){
$type = $tra[0][13];
$mile = $tra[$sign[1]][7]-$tra[$sign[0]][7];
if(!strcmp($type,"空调普客") or !strcmp($type,"空调普快") or !strcmp($type,"空调快速") or !strcmp($type,"空调特快") or !strcmp($type,"直达特快"))
{
	require_once("kongtiao.php");
	$m=kongtiao($mile);
	if(!strcmp($type,"空调普客"))
	{
		$money[0] = $m[0];$money[1] = $m[3];$money[2] = $m[6];$money[3] = $m[7];
		$money[4] = $m[8];$money[5] = $m[15];$money[6] = $m[16];
	}
	else if(!strcmp($type,"空调普快"))
	{
		$money[0] = $m[1];$money[1] = $m[4];$money[2] = $m[9];$money[3] = $m[10];
		$money[4] = $m[11];$money[5] = $m[17];$money[6] = $m[18];
	}
	else if(!strcmp($type,"空调快速") or !strcmp($type,"空调特快") or !strcmp($type,"直达特快"))
	{
		$money[0] = $m[2];$money[1] = $m[5];$money[2] = $m[12];$money[3] = $m[13];
		$money[4] = $m[14];$money[5] = $m[19];$money[6] = $m[20];
	}
}
else if(!strcmp($type,"普客") or !strcmp($type,"普快") or !strcmp($type,"快速"))
{
	require_once("putong.php");
	$m=putong($mile);
	if(!strcmp($type,"普客"))
	{
		$money[0] = $m[0];$money[1] = $m[3];$money[2] = $m[6];$money[3] = @$m[7];
		$money[4] = @$m[8];$money[5] = @$m[15];$money[6] = @$m[16];
	}
	else if(!strcmp($type,"普快"))
	{
		$money[0] = $m[1];$money[1] = $m[4];$money[2] = @$m[9];$money[3] = @$m[10];
		$money[4] = @$m[11];$money[5] = @$m[17];$money[6] = @$m[18];
	}
	else if(!strcmp($type,"快速"))
	{
		$money[0] = $m[2];$money[1] = $m[5];$money[2] = @$m[12];$money[3] = @$m[13];
		$money[4] = @$m[14];$money[5] = @$m[19];$money[6] = @$m[20];
	}
}
else
{
	return false;
}
return $money;
}
?>